﻿namespace YFurion.Localization.Extensions
{
    public static class LocalizationExtensions
    {
        /// <summary>
        /// Get string by name
        /// </summary>
        /// <param name="localizationManager">本地化管理</param>
        /// <param name="name">名称</param>
        /// <returns>current language string</returns>
        public static string GetCurrentString(this ILocalizationManager localizationManager, string name)
        {
            return localizationManager.GetString(name, LocalizationConst.LocalizationAssemblyName);
        }
    }
}
